/*
8 6 7 2
1+2=8
2+3=6
3+4=7
4+5=8

1+4=9
1+4+2(2+3)=21
*/
#include <cstdio>
#include <set>
using namespace std;
#define DEBUG
inline int read()
{
    int c=getchar(), f=1, x=0;
    if(c=='-') f*=-1, x=getchar();
    while(c<'0'&&'9'<c) c=getchar();
    while('0'<=c&&c<='9') 
        x=(x<<3)+(x<<1)+c-'0', c=getchar();
    return f*x;
}
inline void write(long long x)
{
    if(x>=10) write(x/10);
    putchar(x%10+'0');
}

const int dayofmonth[13]={0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
set<int> leap;
class Date{
    private:
        int _year;
        int _month;
        int _day;
    public:
    Date(int y, int m, int d):
        _year(y), 
        _month(m), 
        _day(d) {}
    // ~Date();

    bool isLeapYear()
    {
        if(_year%400==0) return true;
        if(_year%100!=0&&_year%4==0) return true;
        return false;
    }

    void swap(Date& other) {
        std::swap(_year, other._year);
        std::swap(_month, other._month);
        std::swap(_day, other._day);
    }

    bool operator<(const Date& date1) const
    {
       return _year!=date1._year? _year<date1._year:(_month!=date1._month?_month<date1._month:_day<date1._day);
    }

    bool operator==(const Date& date1) const
    {
       return _year==date1._year&&_month==date1._month&&_day==date1._day;
    }

    bool operator!=(const Date& date1) const
    {
       return !(*this==date1);
    }

    void operator++(int)
    {
        _day++;
        if(_month==2&&isLeapYear()&&_day<=dayofmonth[2]+1) return;
        if(_day>dayofmonth[_month]) _month++, _day=1;
        if(_month==13) _year++, _month=1;

    }

    int operator-(const Date& date1) const
    {
        Date d1=*this, d2=date1;
        if(d2<d1) d1.swap(d2); //d1>d2
        int cnt=0;
        while(d1!=d2)
        {
            d1++; cnt++;
        }
        return cnt;
    }

    void print()
    {
        printf("year:%d month:%d day:%d\n", _year, _month, _day);
    }
};

Date be={2025, 03, 29};
Date en={46*46, 1, 1};

void init()
{
    be.print(); en.print();
}

void solve()
{
    // init();
    printf("%d\n", en-be);
}

signed main()
{

    #ifdef DEBUG
        freopen("../in.txt", "r", stdin);
        freopen("../out.txt", "w", stdout);
    #endif
    int T=1; //cin >> T; 
    while(T--) 
    {
        solve();
    }
    return 0;
}